import request from '@/utils/request'

export function getQuestionList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/examine/admin/question/getList',
    method: 'post',
    data: query
  })
}   

export function saveQuestion(query) {
  return request({
    url: '/examine/admin/question/save',
    method: 'post',
    data: query
  })
}

export function copyQuestion(query) {
  return request({
    url: '/examine/admin/question/copy',
    method: 'post',
    data: query
  })
}

export function removeQuestion(query) {
  return request({
    url: '/examine/admin/question/remove',
    method: 'post',
    data: query
  })
}
export function getQuestionDetail(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/examine/admin/question/getDetail',
    method: 'post',
    data: query
  })
}